import { action, observable } from 'mobx'
import { Detail,getRankDropList } from '../../services/home';

class myDetail{
  @observable
  rankDataLis = []

  @observable
  rankDropList = []
  
  @action
  async myDetail(str) {
    let arr = await Detail(str)
    this.rankDataLis = arr.data.rankDataList
  }

  @action
  async everyList(str) {
    let brr = await getRankDropList(str)
    this.rankDropList = brr.data.rankItemGroup

  }
}
export default myDetail